package ltmm.server;
import java.util.ArrayList;

import static spark.Spark.*;

public class ServeUtils {
    public void start(){
        get("/hello", (req, res) -> "Hello World");
    }

    public void push(RouteObject routeObject){
        get(routeObject.getPath(),routeObject.getRoute());
    }

    public void push(ArrayList<RouteObject> routeObjects){
        for (RouteObject routeObject:routeObjects) {
            push(routeObject);
        }
    }
}
